package com.raycloud.erp.omll.provider.enums;

/**
 * @Author 杨恒
 * @Email baixue.yh@raycloud.com
 * @Date 2019-11-15 17:33
 * @Description 库存状态枚举
 */
public enum RefundStatusEnum {

    omall_passed("omall_passed", "待卖家确认收货"),

    omall_notpassed("omall_notpassed", "卖家拒绝退款"),

    omall_wait("omall_wait", "待卖家同意"),

    omall_reject("omall_reject", "卖家拒绝退款"),

    omall_sreject("omall_sreject", "卖家拒绝退款");

    public String status;

    public String msg;

    RefundStatusEnum(String status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public static String getMsgByStockStatus(String stockStatus) {
        for (RefundStatusEnum stockStatusEnum : RefundStatusEnum.values()) {
            if (stockStatusEnum.status.equalsIgnoreCase(stockStatus)) {
                return stockStatusEnum.msg;
            }
        }
        return "未知的库存状态";
    }
}
